<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/12/12
 * Time: 18:14
 */

namespace app\modules\command;


class Invoker
{
    /**
     * @var CommandInterface
     */
    private $_command;

    public function setCommand(CommandInterface $command)
    {
        $this->_command = $command;
    }

    public function run()
    {
        $this->_command->execute();
    }
}